﻿// ***********************************************************************
// Assembly         : SecurityLayer
// Author           : LJO+01 (Laurent Jordi)
// Created          : 06-05-2013
// Last Modified By : LJO+01 (Laurent Jordi)
// Last Modified On : 06-05-2013
// ***********************************************************************
// <copyright file="Register_Base_MetaData.cs" company="Copyright © Innovacall 2011">
//     Copyright (c) Copyright © Innovacall 2011. All rights reserved.
// </copyright>
// <summary></summary>
// ***********************************************************************
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using InnovaApp.Layers.ResourcesLayer.Properties;
using INNOVACALL.Framework.Common.MVCHelpers.Localization;

namespace InnovaApp.Layers.SecurityLayer.Models.MetaData
{
    /// <summary>
    /// Class Register_Base_MetaData
    /// </summary>
    public class Register_Base_MetaData : _MetaData_Base
    {
        /// <summary>
        /// Gets or sets the email.
        /// </summary>
        /// <value>The email.</value>
        [Required]
        [DataType(DataType.EmailAddress)]
        [DisplayNameLocalizedEntityAttribute(typeof(Resources), "Register", "Email")]
        public string Email { get; set; }

        /// <summary>
        /// Gets or sets the password.
        /// </summary>
        /// <value>The password.</value>
        [Required]
        //[ValidatePasswordLength]
        //[DataType(DataType.Password)]
        [DisplayNameLocalizedEntityAttribute(typeof(Resources), "Register", "Password")]
        public string Password { get; set; }

        /// <summary>
        /// Gets or sets the confirm password.
        /// </summary>
        /// <value>The confirm password.</value>
        [DataType(DataType.Password)]
        [DisplayNameLocalizedEntityAttribute(typeof(Resources), "Register", "Confirmation")]
        [Compare("Password", ErrorMessageResourceName = "ErrMsgPassword_Compare_Mismatch", ErrorMessageResourceType = typeof(Resources))]
        public string ConfirmPassword { get; set; }

        /// <summary>
        /// Gets or sets the security question.
        /// </summary>
        /// <value>The security question.</value>
        [Required]
        [DataType(DataType.Text)]
        [DisplayNameLocalizedEntityAttribute(typeof(Resources), "Register", "SecurityQuestion")]
        public string SecurityQuestion { get; set; }

        /// <summary>
        /// Gets or sets the security answer.
        /// </summary>
        /// <value>The security answer.</value>
        [Required]
        [DataType(DataType.Text)]
        [DisplayNameLocalizedEntityAttribute(typeof(Resources), "Register", "SecurityQuestionAnswer")]
        public string SecurityAnswer { get; set; }
    }
}
